<?php
$config =array(
		'signup' => array(
				array(
						'field'   => 'name',
						'label'   => 'Full Name',
						'rules'   => 'required'
				),
				array(
						'field'   => 'passconf',
						'label'   => 'Password Confirmation',
						'rules'   => 'required'
				),
				array(
						'field'   => 'password',
						'label'   => 'Password',
						'rules'   => 'trim|required|matches[passconf]|min_length[8]|alpha_numeric|callback_password_check',
				),
				array(
						'field'   => 'email',
						'label'   => 'Email',
						'rules'   => 'trim|required|email|callback_email_exists'
				),
				array(
						'field'	=>	'contactno',
						'label' =>	'Contact no',
						'rules'	=>	'required'
				),
				array(
						'field' => 'address',
						'label'	=>	'Address',
						'rules'	=>	'trim|required'
				),
				array(
						'field'	=> 'country',
						'label'	=>	'Country',
						'rules'	=>	'trim|required'
				)
		),
		'login' => array(
				array(
						'field'   => 'username',
						'label'   => 'Email',
						'rules'   => 'trim|required|xss_clean'
				),
				array(
						'field' => 'password',
						'label' => 'Password',
						'rules' => 'trim|required|callback_check_database'
				)
		),
		'classifiedpostfrm' => array (
				array(
						'field'   => 'title',
						'label'   => 'Title',
						'rules'   => 'required'
				),
				array(
						'field'   => 'selectCatg',
						'label'   => 'Category',
						'rules'   => 'required'
				),
				array(
						'field' => 'description',
						'label' => 'Descriptions',
						'rules' => 'required'
                                ),
				array(
						'field'   => 'pprice',
						'label'   => 'Price',
						'rules'   => 'required'
				),
				array(
						'field'   => 'contact_person',
						'label'   => 'Contact Person',
						'rules'   => 'required'
				),
				array(
						'field'   => 'contact_no',
						'label'   => 'Contact Person',
						'rules'   => 'required'
				),
				array(
						'field'   => 'contact_email',
						'label'   => 'Contact Person',
						'rules'   => 'required'
				)
				
		),
		'propertyfrm' => array(
			      array(
						'field' => 'propType',
						'label' => 'Property\'s type',
						'rules' => 'required'
				),
			      array(
						'field' => 'ptitle',
						'label' => 'Property\'s title',
						'rules' => 'required'
				),
				 array(
						'field' => 'bathrm',
						'label' => 'No of bathroom',
						'rules' => 'required'
				),
				 array(
						'field' => 'bedrm',
						'label' => 'No of bed room',
						'rules' => 'required'
				),
				 array(
						'field' => 'livingrm',
						'label' => 'No of living room',
						'rules' => 'required'
				),
			     array(
						'field' => 'contact_person',
						'label' => 'Contact person',
						'rules' => 'required'
				),
				 array(
						'field' => 'contact_no',
						'label' => 'Telephone number',
						'rules' => 'required'
				),
			     array(
						'field' => 'contact_email',
						'label' => 'Email address',
						'rules' => 'required|valid_email'
                                ),
			    array(
						'field' => 'pdescriptions',
						'label' => 'Description',
						'rules' => 'required'
				)
		),
		'automobilefrm' => array(
			    
				array(
						'field' => 'autotitle',
						'label' => 'Please specify title',
						'rules' => 'required'
				),
				
				array(
						'field' => 'contact_person',
						'label' => 'Contact person',
						'rules' => 'required'
				),
				 array(
						'field' => 'contact_no',
						'label' => 'Telephone number',
						'rules' => 'required'
				),
				array(
						'field' => 'contact_email',
						'label' => 'Email address',
						'rules' => 'required|valid_email'
                ),
				array(
						'field' => 'adescriptions',
						'label' => 'Please write descriptions',
						'rules' => 'required'
				)
		),
		'articlefrm' => array(
			    array(
						'field' => 'articletitle',
						'label' => 'title',
						'rules' => 'required'
				),
				array(
						'field' => 'entry',
						'label' => 'blog entry',
						'rules' => 'required'
				)
		),
		'resetfrm' => array(
				array(
						'field'   => 'email',
						'label'   => 'Email',
						'rules'   => 'trim|required|email|xss_clean'
				)
		),
);
?>